import io.vertx.core.DeploymentOptions;
import io.vertx.core.Vertx;
import netty.HttpServer;
import thread.NioSocketThread;
import thread.SocketThread;
import verticle.BackEndVerticle;
import verticle.Config;
import verticle.FrontEndVerticle;
import verticle.SocketVerticle;

import java.io.IOException;

/**
 * BootStrap
 *
 * @author liyixin
 * @date 2018/12/24
 */
public class BootStrap {
    public static void main(String[] args) throws IOException {

        Config.ip = args[0];

        Vertx vertx = Vertx.vertx();
        vertx.deployVerticle(BackEndVerticle.class.getName(), new DeploymentOptions().setInstances(6));
        vertx.deployVerticle(FrontEndVerticle.class.getName(), new DeploymentOptions().setInstances(6));
    }
}
